package cn.itsource.org.mapper;

import cn.itsource.org.domain.Department;
import cn.itsource.org.query.DepartmentQuery;

import java.util.List;

public interface DepartmentMapper {
    //mapper定义方法，mapper定义的方法名要贴近数据库   查询：加载load
    //service定义方法，service定义方法名要贴近用户    查询：find
    //专业

    //加载所有
    List<Department> loadAll();
    //加载单个对象
    Department loadById(Long id);
    //保存一个对象
    void save(Department department);
    //移出一个对象
    void remove(Long id);
    //更新一个对象
    void update(Department department);
    //分页查询，总条数
    Integer queryCount(DepartmentQuery departmentQuery);
    //分页查询：当前页的数据
    List<Department> queryData(DepartmentQuery departmentQuery);

    //批量删除
    void parchDel(List<Long> ids);
}
